package com.yuandian.customer.perception.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuandian.api.customer_perception.po.StepFunctionRelationParams;
import com.yuandian.api.customer_perception.vo.StepFunctionRelationDetailVo;
import com.yuandian.api.customer_perception.vo.StepFunctionRelationOverviewVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p> 功能关联度 </p>
 *
 * @Author: LinSheHi
 * @Date: 2022/3/18 9:00
 */
@Mapper
public interface StepFunctionRelationMapper {

	/**
	 * 分类统计 所有跳转天URL+页签 对应的跳转次数总和
	 * @param params
	 * @return
	 */
	//@DS("khgzData")
	//@SqlAlias(value = "功能关联度-分类统计 所有跳转前URL+页签 对应的跳转次数总和")
	List<Map<String, Object>> getJumpTotalByBeforeUrlAndPageLabelId(@Param("params") StepFunctionRelationParams params);

	/**
	 * 查询关联度数据总览列表
	 * @param params
	 * @return
	 */
	//@DS("khgzData")
	//@SqlAlias(value = "功能关联度-查询关联度数据总览列表")
	List<StepFunctionRelationOverviewVo> getStepFunctionRelationOverview(@Param("params") StepFunctionRelationParams params);

	//@DS("khgzData")
	//@SqlAlias(value = "功能关联度-查询关联度数据详情列表")
	List<StepFunctionRelationDetailVo> getStepFunctionRelationDetail(Page<StepFunctionRelationDetailVo> page, @Param("params") StepFunctionRelationParams params);
}
